# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=nodejs-clean-css
pkgver=5.1.2
pkgrel=0
pkgdesc="A fast, efficient, and well tested CSS minifier for nodejs"
url="https://github.com/jakubpawlowicz/clean-css"
arch="noarch !riscv64" # blocked by nodejs
license="MIT"
depends="nodejs"
makedepends="npm"
source="https://registry.npmjs.org/clean-css/-/clean-css-$pkgver.tgz"
options="!check"
builddir="$srcdir/package"

unpack() {
	# skipping unpacking, installing archive directly
	verify
}

package() {
	npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/clean-css-$pkgver.tgz
	chown -R root "$pkgdir"
}

sha512sums="
41c68683d3ae328fb40ecf77df22ce63e8073d66f1871a85d070dec664e83dff29733be6bd9198cddf90a96a7dfe692e70038a56223e75214eaa8648bd76de07  clean-css-5.1.2.tgz
"
